//
//  NewsNetWorkTool.m
//  
//
//  Created by lanou3g on 15/11/18.
//
//

#import "NewsNetWorkTool.h"

@implementation NewsNetWorkTool

+ (instancetype)sharedNetworkTools
{
    static NewsNetWorkTool *instance;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        NSURL *url = nil;
        NSURLSessionConfiguration *config = [NSURLSessionConfiguration defaultSessionConfiguration];
        
        instance = [[self alloc]initWithBaseURL:url sessionConfiguration:config];
        
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript", @"text/html", nil];
    });
    return instance;
}

@end
